package com.atguigu.product.dao;

import lombok.Data;
import java.util.List;

// 最外层响应对象
@Data
public class ProductStockResponse {
    private boolean success;
    private String msg;
    private Integer code;
    private Result result;

    // 内部Result对象
    @Data
    public static class Result {
        private Merchant merchant;
        private Object product; // 由于返回为null，用Object类型接收
    }

    // Merchant对象
    @Data
    public static class Merchant {
        private Integer id;
        private String createTime;
        private Object createTimeEnd; // 为null，用Object类型
        private String createBy;
        private String updateTime;
        private Object updateBy; // 为null，用Object类型
        private Integer yn;
        private Integer type;
        private Object dateType; // 为null，用Object类型
        private Integer bizId;
        private String name;
        private String startDate;
        private String endDate;
        private Integer stockQty;
        private Integer remainQty;
        private List<SubStock> subStocks;
        private Object merchantName; // 为null，用Object类型
        private Integer isWait;
        private boolean isDisplayWait;
    }

    // 子库存对象
    @Data
    public static class SubStock {
        private Integer id;
        private String createTime;
        private Object createTimeEnd; // 为null，用Object类型
        private String createBy;
        private String updateTime;
        private Object updateBy; // 为null，用Object类型
        private Integer yn;
        private Integer stockId;
        private String stockDate;
        private String startTime;
        private String endTime;
        private Integer stockQty;
        private Integer remainQty;
    }
}